package net.xxcxcxcx.xc_enhancedmob.effect;

import net.minecraft.entity.effect.StatusEffect;

import java.util.ArrayList;
import java.util.List;

import static net.xxcxcxcx.xc_enhancedmob.register.StatusEffectRegister.FobidHeal;
import static net.xxcxcxcx.xc_enhancedmob.register.StatusEffectRegister.Prohibition;

public class EffectHelper {
    public static List<EffectMaker> AllEffects = new ArrayList<>();

    public static void Init() {
        AllEffects.add(new EffectMaker(new ProhibitionEffect(), Prohibition));
        AllEffects.add(new EffectMaker(new FobidHealEffect(), FobidHeal));
    }

    public static class EffectMaker {
        private final effet effetTrigger;
        private final StatusEffect name;

        public EffectMaker(effet a, StatusEffect n) {
            effetTrigger = a;
            name = n;
        }

        public StatusEffect getStatusEffect() {
            return name;
        }

        public effet geteffetEvent() {
            return effetTrigger;
        }
    }
}
